//
//  ContentTitle.m
//  UI19_JSON
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ContentTitle.h"

@implementation ContentTitle

- (instancetype)initWithDictonary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
// 赋值 没有找到对应的key
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
//    if (key isEqualToString:<#(nonnull NSString *)#>) {
//        <#statements#>
//    }
    
}
// 取值 没有找到对应的key
- (id)valueForUndefinedKey:(NSString *)key {

    return nil;
}
// 构造器
+ (ContentTitle *)contentTitleWithDictionary:(NSDictionary *)dictionary {
    // 程序运行时 是利用构造器给model赋值 先走构造器 再到初始化 最后再回到构造器 返回值
    return [[self alloc] initWithDictonary:dictionary];
}

- (NSString *)description {
    return [NSString stringWithFormat:@"%@",  _title];
}



@end
